//
//  CRAvatarImageView.h
//  TestPrj
//
//  Created by 朱铅峰 on 2020/8/18.
//  Copyright © 2020 Xing. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "CRSession.h"
#import "CRMessage.h"
#import <SDWebImage/SDWebImage.h>

NS_ASSUME_NONNULL_BEGIN

@interface CRAvatarImageView : UIControl

@property (nonatomic,strong)    UIImage *image;
@property (nonatomic,assign)    CGFloat cornerRadius;

- (void)setAvatarBySession:(CRSession *)session;
- (void)setAvatarByMessage:(CRMessage *)message;

- (void)cr_setImageWithURL:(NSURL *)url placeholderImage:(UIImage *)placeholder;
- (void)cr_setImageWithURL:(NSURL *)url placeholderImage:(UIImage *)placeholder options:(SDWebImageOptions)options;

@end

NS_ASSUME_NONNULL_END
